<template>
	<div>
		<ading-com :helpData="helpData"></ading-com>
	</div>
</template>

<script>
	import AdingCom from '@/components/homeCom/AidingCom.vue'
	export default {
		components: {
			AdingCom
		},
		data() {
			return {
				helpData: []
			}
		},
		created() {
			this.getHelpPoor()
		},
		methods: {
			// 精准扶贫
			getHelpPoor() {
				let postData = {
					pgCt: 1,
					pgSz: 10
				}
				this.$api.get('/api/fungus/product_list?noLoading', postData)
					.then(({data}) => {
						this.helpData = data.records;
						if(data.records.length > 2){
							this.helpData.length = 2; // 只展示两条数据
						}
						
					})
			},
		}
	}
</script>

<style lang="scss" scoped>


</style>
